import { createApp } from 'vue';
import App from './App.vue';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css'; // 确保样式文件被正确导入
import { createRouter, createWebHistory } from 'vue-router';
import UserManagement from './components/UserManagement.vue';
import WarehouseManagement from './components/WarehouseManagement.vue';

const routes = [
    { path: '/user-management', component: UserManagement },
    { path: '/warehouse-management', component: WarehouseManagement }
];

const router = createRouter({
    history: createWebHistory(),
    routes
});

const app = createApp(App);

app.use(ElementPlus);
app.use(router);
app.mount('#app');

